package com.example.pacs.dao;

import com.example.pacs.bean.entity.Equipment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface EquipmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Equipment record);

    int insertSelective(Equipment record);

    Equipment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Equipment record);

    int updateByPrimaryKey(Equipment record);

    /**
     * 根据series表主键查询设备是否存在
     *
     * @param seriesPrimary series表主键
     * @return 设备信息
     */
    Equipment queryEquipmentBySeriesPrimary(@Param("seriesPrimary") Long seriesPrimary);
}